package com.yonyou.cyxdms.basedata.service.service.basedata;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yonyou.cyx.framework.service.base.ICommonService;
import com.yonyou.cyxdms.basedata.service.dto.basedata.BasedataDTO;
import com.yonyou.cyxdms.basedata.service.entity.basedata.BasedataPO;
import com.yonyou.cyxdms.basedata.service.vo.basedata.DefinitionVO;

/**
 * <p>
 * 基础数据 服务类
 * </p>
 *
 * @author dengqiang
 * @since 2019-11-21
 */
public interface BasedataService extends ICommonService<BasedataDTO, BasedataPO, Long> {

    /**
     * 整车分类定义分页查询
     *
     * @param page
     * @param basedataType
     * @param basedataName
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.yonyou.cyxdms.basedata.service.vo.basedata.DefinitionVO>
     * @author dengqiang
     * @since 2019/11/21
     */
    IPage<DefinitionVO> qrySortDefinitionPage(Page<DefinitionVO> page, String basedataType, String basedataName);

    /**
     * 整车分类定义修改
     *
     * @param basedataDTO
     * @return com.yonyou.cyxdms.basedata.service.entity.basedata.BasedataPO
     * @author dengqiang
     * @since 2019/11/21
     */
    Integer updateSortDefinition(BasedataDTO basedataDTO);

    /**
     * 整车分类定义保存
     *
     * @param basedataDTO
     * @return java.lang.Integer
     * @author dengqiang
     * @since 2019/11/21
     */
    Integer saveSortDefinition(BasedataDTO basedataDTO);

    /**
     * 整车分类定义详情信息
     *
     * @param basedataId
     * @return com.yonyou.cyxdms.basedata.service.vo.basedata.DefinitionVO
     * @author dengqiang
     * @since 2019/11/21
     */
    DefinitionVO qrySortDefinitionDetail(Long basedataId);
}
